Fast hadamard transform device

ABSTRACT

A fast Hadamard transform device is provided which prevent from increasing of circuit scale and shorten a developing TAT even if the number of bits to be operated. The device includes n of shift register units and n/2 of butterfly computation units. Input data are entered to the shift register units in response to a signal and data stored in the shift register units are supplied as quantized data by providing a signal for each “log 2 n*(p+log 2 n)” clocks.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The invention relates to a fast hadamard transform device and, in particular, to the transform device which is adapted to perform quadrature modulation of spread signals in a CDMA (Code Division Multiple Access) mobile communication system.

[0003] 2. Description of the Related Art

[0004] In a mobile communication system which employs a communication method, CDMA, which is focused as the next generation standard mobile communication method, mobile communication terminals in the system can simultaneously communicate among a plurality of channels by using the same frequency band. Furthermore, a spread spectrum communication method is used in the CDMA mobile communication system.

[0005] The spread spectrum communication method can be realized, for example, by a Walsh quadrature modulation technique which uses a Walsh code such that a correlation function becomes zero at every channel. Herein, it is to be noted that the Walsh code can be expressed by a Hadamard transform matrix which is composed of elements of “+1” and “−1”.

[0006] In the Walsh quadrature modulation, high speed or fast processing based on a butterfly computation can be achieved by carrying out Hadamard transform using the Hadamard transform matrix. A device which enables such high speed or fast Hadamard transform based on the butterfly computation may be called a fast Hadamard transform (FHT) device.

[0007] A conventional fast Hadamard transform device performs both addition and subtraction in the butterfly computation. Specifically, the addition is performed by using n/2 of (p−1+log₂n) bits adders while the subtraction is performed by using n/2 of (p−1+log₂n) bits subtractors. For brevity of description, it will be assumed that the number of quantization bits is represented by p and an n-th order Hadamard transform is carried out in the following. Especially, the description will be mainly made about an eighth-order fast Hadamard transform.

[0008] Now, a technology related to the conventional fast Hadamard transform device is disclosed in Japanese Laid Open Publication No. H06-301711 (namely, 301711/1994) “Fast Hadamard transform device”.

[0009] However, in the conventional fast Hadamard transform device, if the number of bits used for calculation is increased to k times, the device has to be enlarged in size to 3k times. This is because three latches, that is, an input latch, a latch with selector, and an output latch should be prepared for each bit in the conventional fast Hadamard transform.

[0010] Further, since addition and subtraction are carried out in parallel with each other in the butterfly computation, not only each of adders and subtractors should process the number of bits equal to (p−1+log₂n), but also each of latches should include a bit number of register stages which is equal to (p−1+log₂n).

[0011] It is not desirable to fabricate such a fast Hadamard transform device as a gate array since a cost of the fabrication is increased due to an increase of scale of the device. Also, a great deal of times and labor are required to develop and prove each block and to repetitively arrange wiring in the same block for integration. This is because such blocks have different functions from one another and are structured by different circuit elements, such as a latch with selector, a latch with no selector, and the like.

SUMMARY OF THE INVENTION

[0012] It is, therefore, an object of the invention to provide a fast Hadamard transform device which can be configured in a small scale and developed in a short time, that is, within short developing TAT (Turn Around Time), even if the number of bits to be processed is increased.

[0013] According to a first aspect of the invention, there is provided a fast Hadamard transform device which transforms n elements of input data each of which is composed of p bits. The device comprises n of shift register units each of which inputs the corresponding element of the input data at the predetermined input timing and outputs the bits in the input data serially, and n/2 of butterfly computation units each of which receives a bit from each two of the n shift register units and performs addition and subtraction on the two bits to supply each operation result to a determined shift register unit.

[0014] According to a second aspect of the invention, there is provided a fast Hadamard transform device of the first aspect of the invention, and in the device, each of the shift register units operates as output latches holding (p+log₂n) signals from one of the butterfly computation units at the predetermined output timing, and operates as (p+log₂n) steps of shift registers in response to entering the input data and signals from one of the butterfly computation units at the other timing.

[0015] According to a third aspect of the invention, there is provided a fast Hadamard transform device of the second aspect of the invention, and in the device, each of the butterfly computation units includes an adder which performs addition on two bits which are shifted from the different shift register units and a carry bit which is stored in the former addition, a subtractor which performs subtraction on two bits which are shifted from the different shift register units and a borrow bit which is stored in the former subtraction.

[0016] According to a fourth aspect of the invention, there is provided a fast Hadamard transform device of the third aspect of the invention, and in the device, each of the carry bit and the borrow bit is stored in a delay circuit which is initialized every (log₂n*(p+log₂n)) shift timings.

[0017] According to a first aspect of the invention, there is provided a fast Hadamard transform device of the fourth aspect of the invention, and in the device, serial output of the shift register unit corresponding to the 2q−1-th (1≦q≦4, q is a natural number) order is connected to an input to the adder of the q-th butterfly computation unit, serial output of the shift register unit corresponding to the 2q-th order is connected to an input to the subtractor of the q-th butterfly computation unit, an output from the adder of the r-th (1≦r≦4, r is a natural number) butterfly computation unit is connected to the serial input of the r-th shift register unit, and an output from the subtractor of the r-th butterfly computation unit is connected to the serial input of the r+4-th shift register unit.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018]FIG. 1 shows a block diagram of a conventional fast Hadamard transform device;

[0019]FIG. 2 shows a timing chart representing operation timings of the conventional fast Hadamard transform device;

[0020]FIG. 3 shows a block diagram of a fast Hadamard transform device according to an embodiment of the invention;

[0021]FIG. 4 shows a diagram representing a main part of a shift register unit of the fast Hadamard transform device of the invention;

[0022]FIG. 5 shows a diagram representing a main part of a butterfly computation unit of the fast Hadamard transform device of the invention;

[0023]FIG. 6 shows a diagram representing a combination of patterns of logic level of adders in the fast Hadamard transform device of the invention;

[0024]FIG. 7 shows a diagram representing a combination of patterns of logic level of subtractors in the fast Hadamard transform device of the invention; and

[0025]FIG. 8 shows a diagram representing transition of operation timing of the fast Hadamard transform device of the invention.

DESCRIPTION OF THE PREFERRED EMBODIMENT

[0026] At first, illustration is made about the above-described conventional fast Hadamard transform device with reference to FIGS. 1 and 2.

[0027] In FIG. 1, the conventional fast Hadamard transform device can carry out the n-th order of the Hadamard transform. Herein, it is assumed that the illustrated device carries out an eighth order of the Hadamard transform, that is, n is equal to eight and the number of quantization bits is equal to p. The device receives eight elements (or dimension) of input vector X in a bit serial manner and each of the elements x₁-x₈ of the vector X is successively latched by each of a first input latch 10 ₁ through an eighth input latch 10 ₈ in the illustrated manner.

[0028] Each of output terminals of the first input latch 10 ₁ through the eighth input latch 10 ₈ can be put into a high impedance state in response to an input latch output enable signal (not shown). Both the output terminals of the first input latch 10 ₁ and the second latch 10 ₂ are connected to an adder 11 ₁ and a subtractor 12 ₁. Herein, adders and subtractors concerned with the conventional fast Hadamard transform device can carry out addition and subtraction in response to the (p−1+log₂n) of bits, and therefore each of the adders may be denoted as (p− 1+log₂n) adder and each of the subtractors may be denoted as (p−1+ log₂n) subtractor.

[0029] Similarly, both the output terminals of the third input latch 10 ₃ and the fourth latch 10 ₄ are connected to an adder 11 ₂ and a subtractor 12 ₂. Both the output terminals of the fifth input latch 10 ₅ and the sixth latch 10 ₆ are connected to an adder 11 ₃ and a subtractor 12 ₃. Both the output terminals of the seventh input latch 10 ₇ and the eighth latch 10 ₈ are connected to an adder 11 ₄ and a subtractor 12 ₄.

[0030] An output terminal of the adder 11 ₁ is connected to a first output latch 13 ₁ and a first latch 14 ₁ with no selector. An output terminal of the subtractor 12 ₁ is connected to a fifth output latch 13 ₅ and a first latch 15 ₁ with selector. An output terminal of the adder 11 ₂ is connected to a second output latch 13 ₂ and a second latch 15 ₂ with selector. An output terminal of the subtractor 12 ₂ is connected to a sixth output latch 13 ₆ and a third latch 15 ₃ with selector.

[0031] An output terminal of the adder 11 ₃ is connected to a third output latch 13 ₃ and a fourth latch 15 ₄ with selector. An output terminal of the subtractor 12 ₃ is connected to a seventh output latch 13 ₇ and a fifth latch 15 ₅ with selector. An output terminal of the adder 11 ₄ is connected to a fourth output latch 13 ₄ and a sixth latch 15 ₆ with selector. An output terminal of the subtractor 12 ₄ is connected to an eighth output latch 13 ₈ and a second latch 14 ₂ with no selector.

[0032] A butterfly computation unit is configured by a pair of an adder and a subtractor (such as the adder 11 ₁ and the subtractor 12 ₁), both of which are given the same inputs.

[0033] The first latch 14 ₁ with no selector and the second latch 14 ₂ with no selector latch an output of an adder or a subtractor in response to a selector latch signal (not shown). Also, an output terminal of the first latch 14 ₁ with no selector and an output terminal of the second latch 14 ₂ with no selector are connected to an output terminal of the first input latch 10 ₁ and an output terminal of the eighth input latch 10 ₈, respectively. Both of them are kept at high impedance states in response to entire latch output enable signals (not shown) which are delivered to all of the latches with and without selectors, as will become clear later.

[0034] The first latch with selector 15 ₁ through the sixth latch with selector 15 ₆ latch an output of an adder or a subtractor in response to a selector latch signal (not shown). Each of the first latch 15 ₁ with selector through the sixth latch 15 ₆ with selector has two output terminals A and B, and outputs latched data from one of the terminals according to a “latch with selector” switch signal (not shown). The “latch with selector” switch signal serves to selectively switch only the firth through the sixth latches with selector, with the first and the second latches 14 ₁ and 14 ₂ kept intact, and therefore will be referred to as a selective switch signal. Also, these terminals are connected to one of output terminals of the second input latch 10 ₂ through the seventh input latch 10 ₇ and are kept at high impedance states by the above-mentioned entire latch output enable signal.

[0035] The first output latch 13 ₁ through the eighth output latch 13 ₈ latch output of the corresponding adder or the corresponding subtractor in according to an output latch signal (not shown) and outputs elements y₁-y₈ of the output vector Y.

[0036] Next, operation of the device illustrated in FIG. 1 will be described with reference to FIG. 2. At timing t1, each of the first input latch 10 ₁ through the eighth input latch 10 ₈ latches each of the corresponding elements ((a) in FIG. 2) of the eight elements of the input vector X by an input latch clock ((b) in FIG. 2). At this point, the input-latch output enable signal is turned to a low level signal “L” ((c) in FIG. 2) and the entire latch output enable signal is turned to a high level signal “H” ((e) in FIG. 2) and is sent to all of the latches 14 ₁, 14 ₂, 15 ₁ to 15 ₆ to put them into the high impedance states. Under the circumstances, latch signals which are latched in all the input latches are supplied to the adders 11 ₁-11 ₄ or the subtractors 12 ₁-12 ₄, with all of the latches 14 ₁, 14 ₂, 15 ₁ to 15 ₈ kept in the high impedance states. In this event, output terminals A of the first through the sixth latches 15 ₁-15 ₆ with selectors are selected by the selective switch signal ((d) in FIG. 2). At this time instant t₁, the adders and subtractors generate and feed, back to the latches, output signals w₁ to w₈ given by:

w ₁(t ₁)=x ₁ +x ₂

w ₂(t ₁)=x ₁ −x ₂

w ₃(t ₁)=x ₃ +x ₄

w ₄(t ₁)=x ₃ −x ₄

w ₅(t ₁)=x ₅ +x ₆

w ₆(t ₁)=x ₅ −x ₆

w ₇(t ₁)=x ₇ +x ₈

w ₈(t ₁)=x ₇ −x ₈

[0037] Next, at timing t₂, the feedback signal w₁(t₁) is stored to the first latch 14 ₁ with no selector and w₈(t₁) is stored to the second latch 14 ₂ with no selector in response to a selector latch signal ((f) in FIG. 2). Further, the remaining feedback signals w₂(t₁), w₃(t₁), w₄(t₁), w₅(t₁), w₆(t₁), and w₇(t₁) are stored to the first latch 15 ₁ with selector, the second latch 15 ₂ with selector, the third latch 15 ₃ with selector, the fourth latch 15 ₄ with selector, the fifth latch 15 ₅ with selector, and the sixth latch 15 ₆ with selector, respectively ((f) in FIG. 2). At this time point t2, the input-latch output enable signal is turned back to the high level signal “H” ((c) in FIG. 2) while the entire latch output enable signal is turned to the low level signal “L” ((e) in FIG. 2). Under the circumstances, latch signals which are latched by the latches 14 ₁, 14 ₂, and 15 ₁-15 ₆ are supplied to the adders 11 ₁-11 ₄ or the subtractors 12 ₁-12 ₄. As a result, the adders and subtractors produce, at the time point t2, output signals represented by:

w ₁(t ₂)=w ₁(t ₁)+w ₃(t ₁)=x ₁ +x ₂ +x ₃ +x ₄

w ₂(t ₂)=w ₁(t ₁)−w ₃(t ₁)=x ₁ +x ₂ −x ₃ −x ₄

w ₃(t ₂)=w ₂(t ₁)+w ₄(t ₁)=x ₁ −x ₂ +x ₃ −x ₄

w ₄(t ₂)=w ₂(t ₁)−w ₄(t ₁)=x ₁ −x ₂ −x ₃ +x ₄

w ₅(t ₂)=w ₅(t ₁)+w ₇(t ₁)=x ₅ +x ₆ +x ₇ +x ₈

w ₆(t ₂)=w ₅(t ₁)−w ₇(t ₁)=x ₅ +x ₆ −x ₇ −x ₈

w ₇(t ₂)=w ₆(t ₁)+w ₈(t ₁)=x ₅ −x ₆ +x ₇ −x ₈

w ₈(t ₂)=w ₆(t ₁)−w ₈(t ₁)=x ₅ −x ₆ −x ₇ +x ₈

[0038] Next, at timing t₃, the feedback signal w₁(t₂) is stored to the first latch 14 ₁ with no selector and w₈(t₂) is stored to the second latch 14 ₂ with no selector in response to the selector latch signal ((g) in FIG. 2). Further, the feedback signals w₂(t₂), w₃(t₂), w₄(t₂), w₅(t₂), w₆(t₂), and w₇(t₂) are stored to the first latch 15 ₁ with selector, the second latch 15 ₂ with selector, the third latch 15 ₃ with selector, the fourth latch 15 ₄ with selector, the fifth latch 15 ₅ with selector, and the sixth latch 15 ₆ with selector, respectively ((g) in FIG. 2). After the timing t₂, output terminals B of the latches 15 ₁-15 ₆ are selected by the selective switch signal ((d) in FIG. 2), and each of feedback signals of the adders and subtractors is given by:

w ₁(t ₃)=w ₁(t ₂)+w ₅(t ₂)=x ₁ +x ₂ +x ₃ +x ₄ +x ₅ +x ₆ +x ₇ +x ₈

w ₂(t ₃)=w ₁(t ₂)−w ₅(t ₂)=x ₁ +x ₂ +x ₃ +x ₄ −x ₅ −x ₆ −x ₇ −x ₈

w ₃(t ₃)=w ₃(t ₂)+w ₇(t ₂)=x ₁ −x ₂ +x ₃ −x ₄ +x ₅ −x ₆ +x ₇ −x ₈

w ₄(t ₃)=w ₃(t ₂)−w ₇(t ₂)=x ₁ −x ₂ +x ₃ −x ₄ −x ₅ +x ₆ −x ₇ +x ₈

w ₅(t ₃)=w ₂(t ₂)+w ₆(t ₂)=x ₁ +x ₂ −x ₃ −x ₄ +x ₅ +x ₆ −x ₇ −x ₈

w ₆(t ₃)=w ₂(t ₂)−w ₆(t ₂)=x ₁ +x ₂ −x ₃ −x ₄ −x ₅ −x ₆ +x ₇ +x ₈

w ₇(t ₃)=w ₄(t ₂)+w ₈(t ₂)=x ₁ −x ₂ −x ₃ +x ₄ +x ₅ −x ₆ −x ₇ +x ₈

w ₈(t ₃)=w ₄(t ₂)−w ₈(t ₂)=x ₁ −x ₂ −x ₃ +x ₄ −x ₅ +x ₆ +x ₇ −x ₈

[0039] After that, by the output latch clock which is coincident with an input latch clock at the next timing t₁, the feedback signals w₁(t₃)−w₈(t₃) are latched by the corresponding output latches 13 ₁-13 ₈, and elements y₁-y₈ of output data Y are given by:

y 1=w ₁(t ₃)=x ₁ +x ₂ +x ₃ +x ₄ +x ₅ +x ₆ +x ₇ +x ₈

y 2=w ₃(t ₃)=x ₁ −x ₂ +x ₃ −x ₄ +x ₅ −x ₆ +x ₇ −x ₈

y 3=w ₅(t ₃)=x ₁ +x ₂ −x ₃ +x ₄ +x ₅ +x ₆ −x ₇ +x ₈

y 4=w ₇(t ₃)=x ₁ −x ₂ −x ₃ +x ₄ +x ₅ −x ₆ −x ₇ +x ₈

y 5=w ₂(t ₃)=x ₁ +x ₂ +x ₃ +x ₄ −x ₅ −x ₆ −x ₇ −x ₈

y 6=w ₄(t ₃)=x ₁ −x ₂ +x ₃ −x ₄ −x ₅ +x ₆ −x ₇ +x ₈

y 7=w ₆(t ₃)=x ₁ +x ₂ −x ₃ −x ₄ −x ₅ −x ₆ +x ₇ +x ₈

y 8=w ₈(t ₃)=x ₁ −x ₂ −x ₃ +x ₄ −x ₅ +x ₆ +x ₇ −x ₈

[0040] The illustrated conventional fast Hadamard transform device has shortcomings as mentioned in the preamble of the instant specification.

[0041] Next, description is made about a fast Hadamard transform device according to an embodiment of the invention.

[0042] In FIG. 3, the fast Hadamard transform device of the invention includes shift register units 20 ₁-20 _(n), n in number, and butterfly computation units 21 ₁-21 _(n/2), n/2 in number, to perform n-th order fast Hadamard transform of p of quantization bits.

[0043] Each of shift register units 20 ₁-20 _(n) includes two input terminals DIN and LIN, and two output terminals DOUT and LOUT. To the DIN, n elements of input data V₁-V_(n) are supplied, and from the DOUT, n elements of output data W₁-W_(n) are supplied. The input data V1−Vn which are supplied to the DIN are then supplied to the butterfly computation unit as serial data bit by bit. The bit computed by the butterfly computation unit is supplied to the LIN.

[0044] Each of the shift register units 20 ₁-20 _(n) shares an input latch and an output latch by preparing a selector and inputs the input data V₁-V_(n) from DIN at a predetermined input timing. The input data are then transformed to serial data at the shift register unit and addition or subtraction is performed on the serial data by the butterfly computation unit bit by bit. Consequently, the result from the operation is supplied from the DOUT at predetermined output timing as output data W₁-W_(n).

[0045] The butterfly computation unit includes two input terminals ADDIN and SUBIN, and two output terminals ADDOUT and SUBOUT. The unit performs butterfly computation on the input data from the LOUT of the shift register unit and supplies the result to the LIN of the shift register unit.

[0046] Next, description is made about main parts of the fast Hadamard transform device of the invention. Herein, it is assumed that the number of quantized bits is four and order is eight. In this connection, the illustrated fast Hadamard transform device includes shift register units 20 ₁-20 ₈ and butterfly computation units 21 ₁-21 ₄.

[0047] Herein, it is to be noted that all the shift register units 20 ₁-20 ₈ have the same configuration. Each of Input signals V₁-V₈ is supplied to the corresponding DIN of the shift register units 20 ₁-20 ₈ and each of output signals W₁-W₈ is supplied from the corresponding DOUT of the shift register units 20 ₁-20 ₈.

[0048] The LOUT of the shift register unit 20 _(2q−1) (1≦q≦4, q is a natural number) is connected to the ADDIN of the butterfly computation unit 21 _(q). Also, the LOUT of the shift register unit 20 _(2q) is connected to the SUBIN of the butterfly computation unit 21 _(q).

[0049] The ADDOUT of the butterfly computation unit 21 _(r) (1≦r≦4, r is a natural number) is connected to the LIN of the shift register unit 20 _(r). Also, SUBOUT of the butterfly computation unit 21 _(r) is connected to the LIN of the shift register unit 20 _(r+4).

[0050] The shift register unit 20 shown in FIG. 4 includes m of 1 bit flip flop circuits 30 ₁-30 _(m), m of input switches 31 ₁-31 _(m), and m of output switches 32 ₁-32 _(m). Herein, it is assumed that m is “p+log₂n”.

[0051] Each of the flip flop circuits 301-30 m latches an input signal of a D terminal at a predetermined latch clock and outputs the signal from a Q terminal. Each of the input switches 31 ₁-31 _(m) outputs an input signal entered from an IN terminal to an O₁ terminal or an O₂ terminal in according to a predetermined input switch signal. Each of the output switches 32 ₁-32 _(m) inputs an input signal from an I₁ terminal or an I₂ terminal in according to a predetermined output switch signal and outputs the signal from an OUT terminal.

[0052] A signal from LIN is supplied to an IN terminal of the input switch 31 ₁. From an O₁ terminal of the input switch 31 ₁, a bit of DOUT is supplied. An O₂ terminal of the input switch 31 ₁ is connected to an I₂ terminal of the output switch 32 ₁. A most significant bit (MSB) of DIN is supplied to an I₁ terminal of the output switch 32 ₁. An OUT terminal of the output switch 32 ₁ is connected to a D terminal of the flip flop circuit 30 ₁.

[0053] To each of IN terminals of the input switches 31 ₂-31 ₇, the corresponding Q terminal of the flip flop circuits 30 ₁-30 ₆, which reside the former step of the input switches, is connected. Signal from each of O₁ terminals of the input switches 31 ₂-31 ₇ are supplied as a bit of the DOUT. Each of O₂ terminals of the input switches 31 ₂-31 ₇ is connected to the corresponding I₂ terminal of the output switches 32 ₂-32 ₇. Each of bits from the next to the MSB to the least significant bit (LSB) of the DIN is entered to one of I₁ terminals of the output switches 32 ₂-32 ₇ in order. OUT terminals of the output switches 32 ₂-32 ₇ are connected to the corresponding D terminal of the flip flop circuits 30 ₂-30 ₇. A Q terminal of the flip flop circuit 30 ₇ is supplied as LOUT.

[0054] Such configuration of flip flop circuit keeps transform result bit by bit at each step of n-th order fast Hadamard transform. The input switch and the output switch controls flow of signals when the signals are supplied to the fast Hadamard transform device of the embodiment or when the signals are supplied as operation results. That is, each of the output switches 32 ₁-32 ₇ connects the I₁ terminal to the OUT terminal by the input switch signal at the predetermined signal input timing, and supplies an input signal from the DIN to one of the flip flop circuits 30 ₁-30 ₇. Also, each of the input switches 31 ₁-31 ₇ connects the IN terminal to the O₁ terminal by the output switch signal at the predetermined signal output timing, and supplies a result from the butterfly computation entered from the LIN as DOUT. In the other timing, each of the input switches 311-317 connects the IN terminal to the O2 terminal, each of the output switches 32 ₁-32 ₇ connects the I₂ terminal to the OUT terminal, signals are shifted at the flip flop circuits 301-307 by a bit for each predetermined latch clock and consecutively supplied to the butterfly computation unit as LOUT.

[0055] The butterfly computation unit 21 shown in FIG. 5 includes an adder 40 having a bit of carry input/output, a subtractor 41 having a bit of borrow input/output, a flip flop circuit 42 having a bit of reset, and a flip flop circuit 43 having a bit of set.

[0056] A signal which is supplied from the shift register unit to an ADDIN is supplied to an ADD₀ terminal of the adder 40 and to an ADD₀ terminal of the subtractor 41. Also, a signal which is supplied from the shift register unit to a SUBIN is supplied to an ADD₁ terminal of the adder 40 and to an SUB₀ terminal of the subtractor 41.

[0057] As shown in FIG. 5, the adder 40 outputs to the OUT terminal a result from adding of a bit from the ADD0 terminal, a bit from the ADD1 terminal, and a carry bit from the CIN terminal, and outputs an output carry bit to the COUT terminal. The result of adding from the OUT terminal is supplied to the shift register unit as ADDOUT. The COUT terminal is connected to a D terminal of the flip flop circuit 4 ₂, and a Q terminal of the circuit 42 is connected to the CIN terminal of the adder 40.

[0058] As shown in FIG. 7, the subtractor 41 subtracts using a bit from the ADD0 terminal, a bit from the SUB0 terminal, and a borrow bit from the BIN terminal and outputs the subtracting result to the OUT terminal. Further, the subtractor 41 outputs a borrow bit to the BOUT terminal. The subtracting result from the OUT terminal is supplied to the shift register unit as SUBOUT. The BOUT terminal is connected to a D terminal of the flip flop circuit 43, and a Q terminal of the flip flop circuit 43 is connected to the BIN terminal of the subtractor 41.

[0059] The flip flop circuit 42 outputs “0” in response to a reset signal entered into an R terminal at an initial status, and performs, at a normal status, carry computation of a bit by delaying a carry bit by a clock of a latch clock and supplying the carry bit to the adder 40.

[0060] The flip flop circuit 43 outputs “1” in response to a set signal entered into an S terminal at an initial status, and performs, at a normal status, borrow computation of a bit by delaying a borrow bit by a clock of a latch clock and supplying the borrow bit to the subtractor 41.

[0061] Next, description is made about operations of the above fast Hadamard transform device with reference to FIG. 8.

[0062] In FIG. 8, five lines (a) to (e) are shown. The top line (a) shows a timing of latch clock and the second line (b) shows an input timing of an input vector. The third line (c) shows an output timing of signals from the fast Hadamard transform device, and the forth line (d) shows a switching timing between an input switch and an output switch. The last line (e) shows a reset timing of the adder of the butterfly computation unit and a set timing of the subtractor of the butterfly computation unit.

[0063] When eighth order fast Hadamard transform is performed on data series in which the number of quantized bits p is four, input signals 50 including eight elements of input vectors V₀-V₇ are entered to the DIN of the corresponding shift register unit of the fast Hadamard transform device of the invention at a timing shown in the line (b) in FIG. 8.

[0064] Each of the input vectors V₀-V₇ include bits b₃, b₂, b₁, and b₀ from the MSB side. The input signals 50 are then entered from LOUT of the corresponding shift register unit to the corresponding butterfly computation unit from the LSB side.

[0065] Specifically, b₃ of the DIN is entered into an I₁ terminal of the input switch 32 ₄, b₂ of the DIN is entered into an I₁ terminal of the input switch 32 ₅, b₁ of the DIN is entered into an I₁ terminal of the input switch 32 ₆, and b₀ of the DIN is entered into an I₁ terminal of the input switch 32 ₇.

[0066] Seven input switches are prepared for seven bits, this is because that carry occurs by the butterfly computation unit, thus, when the signals are entered, zero is given to each high order three bits including MSB. Therefore, when the signals are entered, zero is set to the I₁ terminals of the input switches 32 ₁-32 ₃.

[0067] In response to entering of the signals, at a timing as shown in FIG. 8, line (d), the input switch signal 51 is entered into the input switches 32 ₁-32 ₇. When the input switch signal 51 is low level “L”, in each of the input switches 32 ₁-32 ₇, the I₁ terminal and the OUT terminal are connected, and an input signal supplied to the I₁ terminal is entered to the D terminal of the corresponding one of the flip flop circuits 30 ₁-30 ₇. Also, the output switch signal is supposed to be entered to the output switches 31 ₁-31 ₇ at the same timing as the input switch signal 51, when the output signal is low level “L”, in each of the output switches 31 ₁-31 ₇, the IN terminal and the O₁ terminal are connected, and an input signal supplied to the IN terminal is entered to the DOUT terminal.

[0068] The signals of the DOUT terminal are supplied as output signals 52 of results from the fast Hadamard transform of the last cycle. Also, as shown in FIG. 8, line (e), the flip flop circuits 42 and 43 of the butterfly computation unit are initialized since the reset signal and the set signal are entered into the butterfly computation unit (clear 53).

[0069] As described above, when the input switch signal is high level “H”, each of the shift register units 20 ₁-20 ₈ is composed of seven steps of shift register. While the input switch signal is “H”, since the output switch signal is also high level “H”, a bit of signal is supplied from the ADDOUT or the SUBOUT of the butterfly computation unit to the LIN, a result from the shift register unit is supplied from the LOUT to the ADDIN or the SUBIN of the butterfly computation unit bit by bit. And when shift is performed seven times, that is, an input signal is passed a round of the shift register unit, the first step of computation of the fast Hadamard transform which performs three (=log₂n) steps is completed.

[0070] That is, for signals which are stored in the flip flop circuits 30 ₁-30 ₇ of the shift register unit at a predetermined input timing, addition is performed about an LSB at the first clock. For example, as a result of the adding, result “V₁+V₂” is supplied from the ADDOUT of the butterfly computation unit 21 ₁. On the other hand, result “V₁−V₂” is supplied from the SUBOUT of the butterfly computation unit 21 ₁.

[0071] Herein, for V₁ and V₂ (each of which can be represented as b₃−b₁, (b₇, b₆, and b₅ are zero)), “V₁+V₂” supplied from the ADDOUT is shown as follows.

[0072] At first clock: V₁(b₀)+V₂(b₀)

[0073] At second clock: V₁(b₁)+V₂(b₁)+(carry in adding b₀)

[0074] At third clock: V₁(b₂)+V₂(b₂)+(carry in adding b₁)

[0075] At fourth clock: V₁(b₁)+V₂(b₃)+(carry in adding b₂)

[0076] At fifth clock: V₁(b₄)+V₂(b₄)+(carry in adding b₃)

[0077] At sixth clock: V₁(b₅)+V₂(b₅)+(carry in adding b₄)

[0078] At seventh clock: V₁(b₆)+V₂(b₆)+(carry in adding b₅)

[0079] It is assumed that operation results stored in the flip flop circuits 30 ₁-30 ₇ of the shift register unit at the seventh clock from the entering of the input signal are quantized data in which the bit stored in the flip flop 30 ₁ corresponds to the MSB and the bit stored in the flip flop 30 ₇ corresponds to the LSB, these feedback data w₁(1)-w₈(1) are shown as follows.

W ₁(1)=V ₁ +V ₂

W ₂(1)=V ₁ −V ₂

W ₃(1)=V ₃ +V ₄

W ₄(1)=V ₃ −V ₄

W ₅(1)=V ₅ +V ₆

W ₆(1)=V ₅ −V ₆

W ₇(1)=V ₇ +V ₈

W ₈(1)=V ₇ −V ₈

[0080] Then, after the seventh clock from the entering of the input signal, as shown in FIG. 8, line (e), the reset signal and the set signal are entered into the butterfly computation unit, the adder and the subtractor of the butterfly computation unit are initialized. After that, the similar operation on the signal in the shift register unit is repeated bit by bit. As a result, in the next seven clocks (after the fourteenth clock from the entering of the input signal), the feedback data w₁(2)-w₈(2) are changed as follows.

W ₁(2)=V ₁ +V ₂ +V ₃ +V ₄

W ₂(2)=V ₅ +V ₆ +V ₇ +V ₈

W ₃(2)=V ₁ −V ₂ +V ₃ −V ₄

W ₄(2)=V ₅ −V ₆ +V ₇ −V ₈

W ₅(2)=V ₁ +V ₂ −V ₃ −V ₄

W ₆(2)=V ₅ +V ₆ −V ₇ −V ₈

W ₇(2)=V ₁ −V ₂ −V ₃ +V ₄

W ₈(2)=V ₅ −V ₆ −V ₇ +V ₈

[0081] Similarly, for each seven clocks, the reset signal and the set signal are entered into the butterfly computation unit and the unit is initialized. Therefore, when still the next seven clocks are passed, the feedback data w₁(3)-w₈(3) are changed as follows.

W ₁(3)=V ₁ +V ₂ +V ₃ +V ₄ +V ₅ +V ₆ +V ₇ +V ₈

W ₂(3)=V ₁ −V ₂ +V ₃ −V ₄ +V ₅ −V ₆ +V ₇ −V ₈

W ₃(3)=V ₁ +V ₂ −V ₃ −V ₄ +V ₅ +V ₆ −V ₇ −V ₈

W ₄(3)=V ₁ −V ₂ −V ₃ +V ₄ +V ₅ −V ₆ −V ₇ +V ₈

W ₅(3)=V ₁ +V ₂ +V ₃ +V ₄ −V ₅ −V ₆ −V ₇ −V ₈

W ₆(3)=V ₁ −V ₂ +V ₃ −V ₄ −V ₅ +V ₆ −V ₇ +V ₈

W ₇(3)=V ₁ +V ₂ −V ₃ −V ₄ −V ₅ −V ₆ +V ₇ +V ₈

W ₈(3)=V ₁ −V ₂ −V ₃ +V ₄ −V ₅ +V ₆ +V ₇ −V ₈

[0082] As mentioned above, parallel-serial transform is performed by the flip flop of the shift register, and addition/subtraction is performed in “log₂n*(p+log₂n))” clocks. For example, if the number of quantized bits is four, and input vector has eight elements, eighth order Hadamard transform of the input vector can be completed in twenty one clocks. As shown in FIG. 8, line (d), for each twenty one clocks, switching between the input switches and the output switches is performed in response to the switch signal, quantized data stored in the flip flop circuit of the shift register are supplied as DOUT and next input vector is entered.

[0083] Therefore, the fast Hadamard transform device of the invention includes n of shift register units each of which is the same configuration for each n elements of input data having quantized bit number p, and is composed of “p+log₂n” steps of one bit shift registers with switches capable of sharing the input latches and the output latches, and n/2 butterfly computation units each of which performs addition/subtraction bit by bit.

[0084] Thereby, the number of latches is reduced to ⅓, scale of circuits can be reduced to 1/“3*the number of quantized bits”, although the conventional device requires a plurality of sets each of which includes a plurality of adders and subtractors, and a plurality of bits of latch register.

[0085] Therefore, even if the number of bits to be operated is increased, increase of scale of circuits can be suppressed to the minimum. Also, it is possible to reduce the developing man-hour and developing TAT and to provide a suitable configuration of fast Hadamard transform device since each block which configures a part of the fast Hadamard transform device has the same configuration.

[0086] Further, in the fast Hadamard transform device of the invention, higher speed operation can be performed since a circuit configuration of the device is sophisticatedly simplified and operation can be performed bit by bit. Thereby, the device can be operated at higher latch clock. 

What is claimed is:
 1. A fast Hadamard transform device which transforms n elements of input data each of which is composed of p bits, comprising: n of shift register units each of which inputs the corresponding element of the input data at the predetermined input timing and outputs the bits in the input data serially; and n/2 of butterfly computation units each of which receives a bit from each two of the n shift register units and performs addition and subtraction on the two bits to supply each operation result to a determined shift register unit.
 2. The fast Hadamard transform device of claim 1 , wherein each of the shift register units operates as output latches holding (p+log₂n) signals from one of the butterfly computation units at the predetermined output timing, and operates as (p+log₂n) steps of shift registers in response to entering the input data and signals from one of the butterfly computation units at the other timing.
 3. The fast Hadamard transform device of claim 2 , wherein each of the butterfly computation units includes: an adder which performs addition on two bits which are shifted from the different shift register units and a carry bit which is stored in the former addition; and a subtractor which performs subtraction on two bits which are shifted from the different shift register units and a borrow bit which is stored in the former subtraction.
 4. The fast Hadamard transform device of claim 3 , wherein each of the carry bit and the borrow bit is stored in a delay circuit which is initialized every (log₂n*(p+log₂n)) shift timings.
 5. The fast Hadamard transform device of claim 3 , wherein serial output of the shift register unit corresponding to the 2q−1-th (1≦q≦ 4, q is a natural number) order is connected to an input to the adder of the q-th butterfly computation unit, serial output of the shift register unit corresponding to the 2q-th order is connected to an input to the subtractor of the q-th butterfly computation unit, an output from the adder of the r-th (1≦r≦4, r is a natural number) butterfly computation unit is connected to the serial input of the r-th shift register unit, and an output from the subtractor of the r-th butterfly computation unit is connected to the serial input of the r+4-th shift register unit. 